<%-- 
    Document   : CreateUser
    Created on : Oct 17, 2012, 3:52:27 PM
    Author     : Tin Huynh
--%>

<%@page import="javabean.UserBean"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.text.DateFormat"%>
<%@page import="java.util.Date"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <link href="../../CSS/Site1.css" type="text/css" rel="stylesheet"/>

    </head>
    <body class="main" background="/DeAn_WebTruyen/Images/b1147c9040bd841cbfbf906e3d5a384b_38929258.christmaslightbyusagina.jpg">
        <div class="container">
            <div class="header">
                <div class="header_top_left">
                    <%
                        Date d = new Date();
                        DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyyy");

                        out.print(dateFormat.format(d));
                    %>
                </div>     
                <div class="header_top_right">
                    <%
                        UserBean user = (UserBean) session.getAttribute("userbean");
                        String name = user.getUsername();
                        out.print("Chào bạn " + name);

                    %>
                    <br/>
                </div>

                <div class="header_main" > 
                    <script type="text/javascript">
        
                        var img1="12855184861024648803.jpg"
                        var img2="12855185051828767054.jpg"
                        var img3="1285518514197142706.jpg"
                        var img4="1285518527375730281.jpg"
                        var img5="1285518537601341394.jpg"

                        var cur=Math.round(5*Math.random())
                        if (cur<=1)
                        {
                            img=img1
                        }
                        else if (cur<=2)
                        {
                            img=img2
                        }
                        else if (cur<=3)
                        {
                            img=img3
                        }
                        else if (cur<=4)
                        {
                            img=img4
                        }        
                        else
                            img=img5
                        document.write('<div class="header_main" > <img src="/DeAn_WebTruyen/Images/'+img+'"/></div>')
              
        
                    </script>

                    <table border="0">
                        <tr>
                            <td><h1>User Information</h1></td>

                        </tr>
                    </table>
                    <form name="UserInfo" action="">
                        <table border="0">
                            <tr>
                                <td>Username</td>
                                <td><input type="text" name="Username" value="" /></td>
                            </tr>
                            <tr>
                                <td>Current Password</td>
                                <td>
                                    <input type="password" name="Password" value="" />
                                    <br/><a href="#">change password</a>
                                </td>
                            </tr>
                            <tr>
                                <td>New Password</td>
                                <td>
                                    <input type="password" name="Password" value="" />

                                </td>
                            </tr>
                            <tr>
                                <td>Confirm Password</td>
                                <td>
                                    <input type="password" name="Password" value="" />

                                </td>
                            </tr>
                            <tr>
                                <td>First Name</td>
                                <td><input type="text" name="FirstName" value="" /></td>
                            </tr>
                            <tr>
                                <td>Last Name</td>
                                <td><input type="text" name="LastName" value="" /></td>
                            </tr>
                            <tr>
                                <td>Sex</td>
                                <td>
                                    <select name="Sex">
                                        <option>Male</option>
                                        <option>Female</option>
                                    </select>   
                                </td>
                            </tr>
                            <tr>
                                <td>Address</td>
                                <td><input type="text" name="Address" value="" /></td>
                            </tr>
                            <tr>
                                <td>Email</td>
                                <td><input type="text" name="Email" value="" /></td>
                            </tr>
                            <tr>
                                <td>Mobile phone</td>
                                <td><input type="text" name="MobilePhone" value="" /></td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <input type="button" value="Back" name="back" onclick="history.back()" />
                                    <input type="submit" value="Save" name="Save" />
                                </td>
                            </tr>
                        </table>
                    </form>
                    <div style=" background-image:url(/DeAn_WebTruyen/Images/footer_bg2.jpg) ; color: #FF0000;">
                        <p >
                            © Copyright . All right reserved
                            <br />
                            Email: <a href="mailto:maiphuong0403@Gmail.com"><img src="/DeAn_WebTruyen/Images/gmail-icon.gif">MaiPhuong0403@Gmail.com</a>
                        <ul style="text-align: center">
                            Power by<img src="/DeAn_WebTruyen/Images/Untitled.png" />
                        </ul>
                        </p>

                    </div>
                </div>
                </body>
                </html>
